#pragma once

class CEX ThreadMan
{
	static SafeFifo<Job*> _jobs;
	static Array<JobRunner*> _jobRunners;

	ThreadMan(){}

public:

	static void init();
	static void shutdown();

	static void startThread(Thread* th);
	static void joinThread(Thread* th);

	static void pushJob(Job* job);
	static Job* popJob();

};
